import styled from "styled-components"

export const ItemWrapper = styled.div`
  width: 20%;
  padding: 8px;
  margin-top: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  position: relative;
  cursor: pointer;
  &:hover {
    transform: scale(1.05);
  }
  .img {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    img {
      width: 100%;
      height: 100%;
    }
    .mask {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 60%;
      background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0) 3%, rgb(0, 0, 0) 100%);
    }
  }
  .info {
    color: #fff;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    .name {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 5px;
    }
  }
`